/**
 * Copyright @ 2000 ysten Co. Ltd. 
 * All right reserved.     
 * @author: wangmin
 * date: 2016-05-15     
 */
package com.task.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;

import com.task.entity.User;

public interface IUserService
{
    
    void save(User user);
    
    void delete(Long id);
    
    User findById(Long id);
    
    User findByOpenId(Long openId);
    
    Page<User> findUserPage(Map<String, Object> searchParams, int page, int rows);
    
    List<User> findByName(String name);

	User findByUserId(String userId);
    
}
